﻿using Shop.Model.DB;
using Shop.Model.ModuleGoods;
using Shop.RemoteModel.PageModuleGoods.Model;
using WeDonekRpc.Model;

namespace Shop.Repository
{
    public interface IPageModuleGoodsRepository : IShopBaseRepository<DBPageModuleGoods, long>
    {
        long[] GetId ( long tModuleId, string tag );
        ModuleGoodsBase[] GetGoods ( long tModuleId, string tag );
        ModuleGoodsBase[] Sync ( ModuleGoodsAdd add, long[] dropId );
        void SetSort ( Dictionary<long, int> sorts );
        long[] Query ( long moduleId, string tag, IBasicPage paging, out int count );
        long[] GetGoodsId ( long moduleId, string tag, int top );
    }
}